-- GENERATED SPELL FOR [Patchwerk] --


function spell0_31099(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(28131,pUnit)
pUnit:RegisterEvent('Sorts_31099', 668, 1)
end

function Sorts_31099(pUnit, Event)
local choix_sorts_31099 = math.random(0, 0)
if choix_sorts_31099 == 0 then
pUnit:RegisterEvent('spell0_31099', 1, 1)
end
end

function mob31099_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_31099', math.random(1500, 3000), 1)
end

function mob31099_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31099_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31099_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(31099, 1, 'mob31099_Action')
RegisterUnitEvent(31099, 2, 'mob31099_Leave')
RegisterUnitEvent(31099, 3, 'mob31099_Kill')
RegisterUnitEvent(31099, 4, 'mob31099_Die')
